package com.bluegalaxy.sitescore.service.impl;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import com.bluegalaxy.sitescore.mapper.HatCityMapper;
import com.bluegalaxy.sitescore.entity.HatCity;
import com.bluegalaxy.sitescore.service.IHatCityService;
import com.bluegalaxy.sitescore.service.support.BaseServiceImpl;

/**
 *
 * HatCity 表数据服务层接口实现类
 *
 */
@Service
public class HatCityServiceImpl extends BaseServiceImpl<HatCityMapper, HatCity> implements IHatCityService {

    @Override
    public String getCity(Integer provinceId,Integer cityId)
    {
        HatCity hatCity=new HatCity();
        hatCity.setFather(provinceId.toString());
        hatCity.setCityID(cityId.toString());
        return  baseMapper.selectOne(hatCity).getCity();
    }
}